<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class CI_ATtr_Type_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_hid = $form->get_field('hid');
		$f_hid_view = new Form_Field_Text_View($form->get_name().'_'.$f_hid->get_name(), $f_hid);
		$this->add_field_view('hid', $f_hid_view);

		$f_name = $form->get_field('name');
		$f_name_view = new Form_Field_Text_View($form->get_name().'_'.$f_name->get_name(), $f_name);
		$this->add_field_view('name', $f_name_view);

		$f_class_name = $form->get_field('class_name');
		$f_class_name_view = new Form_Field_Text_View($form->get_name().'_'.$f_class_name->get_name(), $f_class_name);
		$this->add_field_view('class_name', $f_class_name_view);

		$f_class_path = $form->get_field('class_path');
		$f_class_path_view = new Form_Field_Text_View($form->get_name().'_'.$f_class_path->get_name(), $f_class_path);
		$this->add_field_view('class_path', $f_class_path_view);
	}
}